package com.qf.shop.order.mapper;

import com.qf.shop.common.vo.StockVo;
import com.qf.shop.order.entity.OrderDetailEntity;
import com.qf.shop.order.entity.OrderEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {

    public int createOrder(@Param("orderEntity") OrderEntity orderEntity, @Param("tabIndex") Integer tabIndex);

    int batchInsertOrderDetail(@Param("odList") List<OrderDetailEntity> odList, @Param("tabIndex") Integer tabIndex);

    OrderEntity getOrderById(@Param("orderId") String orderId, @Param("tabIndex") Integer tabIndex);

    void updateOrderStatus(@Param("orderId") String orderId, @Param("tabIndex") Integer tabIndex,@Param("status") Integer status );

    List<StockVo> getStockVoListOrderId(@Param("orderId") String orderId, @Param("tabIndex") Integer tabIndex);
}
